[NET] front: Fix features on resume when csum is off
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 16 Aug 2006 13:26:59 +0000 (14:26 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 16 Aug 2006 13:26:59 +0000 (14:26 +0100)
commit23f371535896d81a3d711d9cdf8d3d10ea309622
treeda57bca54974898ff7a5f3b7ab84f2ca8044206a
parent942c2f964d2d3a2c403ace599bbaafb4b5b8247c
[NET] front: Fix features on resume when csum is off

When the netfront driver is resumed the features are renegotiated with
the backend.  However, I forgot take into account the status of the TX
checksum setting.  When TX checksum is disabled by the user, we cannot
enable SG or TSO since both require checksum offload.  This patch
makes
xennet check the checksum setting before renegotiating SG or TSO.

This bug was fixed thanks to a report from Anton Burtsev.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c